//
//  UIButton+Addition.m
//  DYZCars
//
//  Created by MF on 16/8/18.
//  Copyright © 2016年 MF. All rights reserved.
//

#import "UIButton+Addition.h"

@implementation UIButton (Addition)

+(instancetype)buttonWithText:(NSString *)text andTextColor:(UIColor *)textColor backgroundColor:(UIColor *)backColor andFontSize:(CGFloat)fontSize {
    UIButton *btn = [[self alloc] init];
    [btn setTitle:text forState:UIControlStateNormal];
    [btn setTitleColor:textColor forState:UIControlStateNormal];
    [btn setBackgroundColor:backColor];
    btn.titleLabel.font = [UIFont systemFontOfSize:fontSize];
    return btn;
}
@end
